package org.huangke.service.impl;

import org.huangke.dao.UserDao;
import org.huangke.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {
    //使用@Resource注解注入UserDao
    @Resource(name="userDao")
    private UserDao userDao;

    public void save(){
        this.userDao.save();
        System.out.println("执行UserServiceImpl.save()");
    }

}
